//
// Created by hsj on 2024-5-15.
//
#include<iostream>
#include<string>
int main(void){
    using namespace std;
    string word = "?ate";

    for (char ch = 'a'; word != "mate"; ++ch) {//string 重载了 != 进行比较
        cout<<word<<endl;
        word[0] = ch;
    }
    cout<<"after loops ends,word is :"<<word<<endl;

    return 0;
}